import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.$pinia.use(piniaPluginPersistedstate)

// import { defineStore } from "pinia"
})
// export const usePluginStateStore = defineStore('counter', () => {
//     const pState = ref(0)
   
//     const setPState = () => {
//       pState.value += 1
//     }
   
//     return {
//       pState,
//       setPState,
//     }
//   }, {
//     persist: true,
//   })